﻿using System;
using System.Collections.Generic;
using System.Text;
using yb.commerce.DAL;
using yb.commerce.Model;

namespace yb.commerce.BLL
{
    public class VideoBusiness
    {
        public bool Add(Video video)
        {
            return new VideoDAO().Add(video);
        }
        public bool Delete(int Id)
        {
            return new VideoDAO().Delete(Id);
        }
        public bool Update(Video video) 
        {
            return new VideoDAO().Update(video); 
        }
        public Video GetEntity(int Id) 
        {
            return new VideoDAO().GetEntity(Id); 
        }
        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new VideoDAO().GetList(fieldList, orderField, orderBy, pageIndex, pageSize, where);
        }
        public int GetMaxOrder()
        {
            return new VideoDAO().GetMaxOrder();
        }
    }
}
